package tk.xly;

import static org.junit.Assert.assertEquals;

import java.util.Date;

import org.junit.BeforeClass;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import tk.controller.InjectionDemo;

public class JunitDemo {
	
	private static ApplicationContext context;
	@BeforeClass
	public static void runApp()
	{
		context=new ClassPathXmlApplicationContext("Spring.xml");
	}
	@Test
	public void showTest()
	{
		InjectionDemo testDemo=(InjectionDemo)context.getBean("InjectionDemoImp");
		testDemo.show(2, 5);
	}
}
